import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Demo {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> blockingQueue =new LinkedBlockingQueue<>(100);
        blockingQueue.put("aaa");
        System.out.println(blockingQueue.take());
        blockingQueue.take();

    }
}
